![]() |
The OpenGL State Variables view lets you watch OpenGL state variables values.
To add a state variable watch type the state variable OpenGL enumerator name or select it from the Enumerator Names combo box and then press the Add button.
Type the first few letters of the enumerator name (example: GL_MOD) and press the down arrow. The combo box opens on the first enumerator name beginning with these letters.
To remove a state variable watch, choose its line and press "DEL".
The watched state variables values are updated each time the debugged process is suspended. State variable values changed in the last process suspension are highlighted in blue.
The OpenGL state machine values can be saved to a file using the menu ôFileö --> ôSave state variablesö command.
A useful debug approach is to compare two saved OpenGL state machine files.
Your program has a ôworking scenarioö and a ônon workingö scenario. Break the program execution at appropriate places in the ôworkingö and the ônon workingö scenarios and save the ôworkingö and ônon workingö OpenGL state machines in two files. Compare the files to observe the differences in the state machine values.
The selected state variables watches are saved in the workspace file. You can immediately save the variables by executing the ôFileö --> ôSave workspaceö command. The workspace is automatically saved when you replace the active workspace or exit gDEBugger.